<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
错误信息：<h4 style="color: red;" th:text="${msg}"></h4>
<!-- <form th:action="@{/login}" method="post">
    <p>账号：<input type="text" name="username" value=""/></p>
    <p>密码：<input type="password" name="password" value=""/></p>
    <p><input type="submit" value="登录"/></p>
</form> -->
<form method="post">
    <p>账号：<input type="text" name="username" value=""/></p>
    <p>密码：<input type="password" name="password" value=""/></p>
    <p><input type="submit" value="登录"/></p>
    <P><input type="checkbox" name="rememberMe" />记住我</P>
    <div><label> 验证码 : <input type="text" name="captcha" placeholder="验证码"/> </label></div>
    <div><img th:src="@{/kaptcha.jpg}"></div>
    <p>点击 <a th:href="@{/logout}">退出登录</a></p>
</form>
</body>
</html>